package pageobjects;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

public class HomePagePO {
    public WebDriver driver;

    //首页登录
    By loginBtn = By.id("top-btn-login");

    //定义构造方法,进行Drivver的传递
    public HomePagePO(WebDriver driver) {
        this.driver = driver;
    }

    /**
     * 点击登录按钮
     * @return
     */
    public WebElement loginBtn() {
       return driver.findElement(loginBtn);
    }
}
